Repository navigation
fix(finai): stabilize assistant tools and pagination - #289
NeerajCodz wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e31b4189b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ] as const); | ||
| if (type) { | ||
| payload.type = type; | ||
| const customType = str(args, 'customType', 40); |
There was a problem hiding this comment.
Accept custom-type-only account updates
When an existing other account only needs its custom label changed, a valid call containing accountId and customType never reaches this code because it is nested under if (type). The custom type is therefore omitted from the action payload and the tool reports NOTHING_TO_CHANGE; process customType independently while validating that the effective account type is other.
Useful? React with 👍 / 👎.
| cursor = nextCursor ?? undefined; | ||
| } | ||
| expect(nextCursor).toBeNull(); | ||
| expect(seen).toHaveLength(count); |
There was a problem hiding this comment.
Assert the Set's size instead of its length
Whenever this new pagination test runs, seen is a Set, which has a size property but no length; Vitest's toHaveLength matcher therefore fails regardless of whether pagination returned all 225 records. Assert seen.size instead so the test validates the implementation rather than unconditionally breaking the suite.
Useful? React with 👍 / 👎.
| if (!activity) { | ||
| seenReplyIds.current = null; | ||
| return; |
There was a problem hiding this comment.
Preserve seen replies across transient disconnects
When the web client briefly loses its WebSocket connection, FinaiLauncher passes enabled=false, the query becomes undefined, and this reset discards every previously seen reply ID. If a background reply finishes during that outage, the reconnect snapshot is treated as initial state and seeds the new ID without calling onReply, so the user never receives the promised notification for a reply completed after mount. Preserve the set across temporary query unavailability and reset it only when the user session actually changes.
Useful? React with 👍 / 👎.
- Skip an undefined row returned from indexed search pagination without passing it to consumers.
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
- Import the stream writer and assert removed Convex fields as absent.
- Handle custom-type-only account updates and retain reply tracking across reconnects. - Correct the paginated trash test assertion.
Changes
Issues
Fixes #194
Fixes #242
Fixes #243
Fixes #244
Fixes #245
Fixes #246
Fixes #247
Fixes #248
Fixes #249
Fixes #250
Fixes #252
Fixes #253
Fixes #254
Fixes #255
Fixes #271